package com.wzl.backend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wzl.backend.pojo.User;
import org.springframework.core.io.Resource;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface UserService extends IService<User> {
    boolean addUser(User user);

    User login(String username, String password);

    void setUserDefaultIcon(Long id) throws IOException;

    String getAvatar(Long id);

    boolean updateAvatar(Long id , String file);
}
